package com.ycfmedical.bed.present;

import com.ycfmedical.bed.local.DataManager;
import com.ycfmedical.bed.ui.MainActivity;

import java.util.ArrayList;
import java.util.HashMap;

import cn.droidlover.xdroidmvp.mvp.XPresent;

/**
 * Created by Administrator on 2017-03-30.
 */

public class MainPresenter extends XPresent<MainActivity> {
    private ArrayList<String> data = new ArrayList<>();

    public void showCard() {
        getCardData();
        getV().setCardText(data);
    }

    private void getCardData() {
        data.add( DataManager.getInstance().getUser().bedId);
        data.add( DataManager.getInstance().getUser().getName());
        data.add( DataManager.getInstance().getUser().getDoctorName());
        data.add( DataManager.getInstance().getUser().getNurseName());
    }

}
